.class public Lcom/bitauto/autoeasy/bbs/BbsListActivity;
.super Lcom/bitauto/autoeasy/BaseActivity;
.source "BbsListActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/bitauto/autoeasy/BaseActivity;",
        "Landroid/widget/AdapterView$OnItemClickListener;",
        "Landroid/view/View$OnClickListener;"
    }
.end annotation


# instance fields
.field private final FGID:Ljava/lang/String;

.field private final TAG:Ljava/lang/String;

.field private final TID:Ljava/lang/String;

.field private final TITLE1:Ljava/lang/String;

.field private bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

.field private button01:Landroid/widget/Button;

.field private contentResolver:Landroid/content/ContentResolver;

.field private flag:Z

.field private image01:Lcom/bitauto/autoeasy/widget/RemoteImageView;

.field private listView:Landroid/widget/ListView;

.field private url:Ljava/lang/String;

.field private view01:Landroid/widget/TextView;

.field private view02:Landroid/widget/TextView;

.field private view03:Landroid/widget/TextView;

.field private view04:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 32
    invoke-direct {p0}, Lcom/bitauto/autoeasy/BaseActivity;-><init>()V

    .line 42
    const-string v0, "title1"

    iput-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->TITLE1:Ljava/lang/String;

    .line 43
    const-string v0, "tid"

    iput-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->TID:Ljava/lang/String;

    .line 44
    const-string v0, "fgid"

    iput-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->FGID:Ljava/lang/String;

    .line 46
    const-string v0, ""

    iput-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->url:Ljava/lang/String;

    .line 49
    const-string v0, "BbsListActivity"

    iput-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->TAG:Ljava/lang/String;

    .line 32
    return-void
.end method


# virtual methods
.method public deleteBBS()V
    .locals 4

    .prologue
    .line 141
    iget-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->contentResolver:Landroid/content/ContentResolver;

    sget-object v1, Lcom/bitauto/autoeasy/db/provider/FAV_BBSContentProvider;->CONTENT_URI:Landroid/net/Uri;

    .line 142
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "id = "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v3}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getFGid()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    .line 141
    invoke-virtual {v0, v1, v2, v3}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    .line 143
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getForumName()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "\u8bba\u575b-\u5df2\u4ece\u6536\u85cf\u5939\u79fb\u9664"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/bitauto/autoeasy/tool/ToolBox;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    .line 144
    iget-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->button01:Landroid/widget/Button;

    const-string v1, "\u6536\u85cf"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 145
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->flag:Z

    .line 146
    return-void
.end method

.method public initView()V
    .locals 3

    .prologue
    .line 59
    const v1, 0x7f03001c

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->setLayout(I)V

    .line 60
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->setTitleContent()V

    .line 62
    const v1, 0x7f0b0059

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->view01:Landroid/widget/TextView;

    .line 63
    const v1, 0x7f0b005b

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->view02:Landroid/widget/TextView;

    .line 64
    const v1, 0x7f0b005d

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->view03:Landroid/widget/TextView;

    .line 65
    const v1, 0x7f0b005f

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->view04:Landroid/widget/TextView;

    .line 66
    const v1, 0x7f0b0057

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/bitauto/autoeasy/widget/RemoteImageView;

    iput-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->image01:Lcom/bitauto/autoeasy/widget/RemoteImageView;

    .line 67
    const v1, 0x102000a

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->listView:Landroid/widget/ListView;

    .line 68
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->listView:Landroid/widget/ListView;

    invoke-virtual {v1, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 70
    const v1, 0x7f0b0060

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->button01:Landroid/widget/Button;

    .line 71
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->button01:Landroid/widget/Button;

    invoke-virtual {v1, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 72
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "bbsid"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 73
    .local v0, bbsid:Ljava/lang/String;
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "http://m.bitauto.com/iphoneapi/v2/bbs_getbbs/?bbsid="

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->url:Ljava/lang/String;

    .line 75
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    iput-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->contentResolver:Landroid/content/ContentResolver;

    .line 76
    return-void
.end method

.method public isExit()Z
    .locals 7

    .prologue
    const/4 v2, 0x0

    .line 112
    iget-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->contentResolver:Landroid/content/ContentResolver;

    sget-object v1, Lcom/bitauto/autoeasy/db/provider/FAV_BBSContentProvider;->CONTENT_URI:Landroid/net/Uri;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "id = "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v4, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v4}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getFGid()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    move-object v4, v2

    move-object v5, v2

    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    .line 113
    .local v6, cursor:Landroid/database/Cursor;
    if-eqz v6, :cond_0

    invoke-interface {v6}, Landroid/database/Cursor;->getCount()I

    move-result v0

    if-lez v0, :cond_0

    .line 114
    const/4 v0, 0x1

    .line 116
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1
    .parameter "v"

    .prologue
    .line 150
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 163
    :goto_0
    return-void

    .line 152
    :pswitch_0
    iget-boolean v0, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->flag:Z

    if-eqz v0, :cond_0

    .line 153
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->deleteBBS()V

    goto :goto_0

    .line 155
    :cond_0
    iget-object v0, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    if-eqz v0, :cond_1

    .line 156
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->saveBBS()V

    goto :goto_0

    .line 158
    :cond_1
    const-string v0, "\u8bb0\u5f55\u4e0d\u5b58\u5728\uff0c\u65e0\u6cd5\u4fdd\u5b58"

    invoke-static {p0, v0}, Lcom/bitauto/autoeasy/tool/ToolBox;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 150
    :pswitch_data_0
    .packed-switch 0x7f0b0060
        :pswitch_0
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0
    .parameter "savedInstanceState"

    .prologue
    .line 52
    invoke-super {p0, p1}, Lcom/bitauto/autoeasy/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 54
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->initView()V

    .line 55
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->refreshView()V

    .line 56
    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    const-string v3, "title"

    .line 168
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/bitauto/autoeasy/bbs/BbsDetailActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 169
    .local v0, intent:Landroid/content/Intent;
    const-string v1, "fgid"

    iget-object v2, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getFGid()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 170
    const-string v2, "tid"

    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getTopicList()Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/bitauto/autoeasy/bbs/Object/Topic;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/bbs/Object/Topic;->getTid()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 171
    const-string v2, "title1"

    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getTopicList()Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/bitauto/autoeasy/bbs/Object/Topic;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/bbs/Object/Topic;->getTitle()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 172
    const-string v2, "auther"

    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getTopicList()Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/bitauto/autoeasy/bbs/Object/Topic;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/bbs/Object/Topic;->getPoster()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 173
    const-string v2, "time"

    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getTopicList()Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/bitauto/autoeasy/bbs/Object/Topic;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/bbs/Object/Topic;->getPostdatetime()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 174
    const-string v1, "title"

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "title"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 175
    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->startActivity(Landroid/content/Intent;)V

    .line 177
    return-void
.end method

.method public refreshView()V
    .locals 4

    .prologue
    .line 82
    new-instance v0, Lcom/bitauto/autoeasy/bbs/Object/BbsInfoParser;

    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->url:Ljava/lang/String;

    invoke-direct {v0, v1}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfoParser;-><init>(Ljava/lang/String;)V

    .line 83
    .local v0, bbsInfoParser:Lcom/bitauto/autoeasy/bbs/Object/BbsInfoParser;
    invoke-virtual {v0}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfoParser;->Paser2Object()V

    .line 84
    invoke-virtual {v0}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfoParser;->getBbsInfo()Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    move-result-object v1

    iput-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    .line 86
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    if-eqz v1, :cond_0

    .line 87
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->view01:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getTopic()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 88
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->view02:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getPosts()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 89
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->view03:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getTodayposts()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 90
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->view04:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getMemberCount()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 91
    const-string v1, "BbsListActivity"

    iget-object v2, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getLogo()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 92
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->image01:Lcom/bitauto/autoeasy/widget/RemoteImageView;

    const v2, 0x7f020008

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/bitauto/autoeasy/widget/RemoteImageView;->setDefaultImage(Ljava/lang/Integer;)V

    .line 93
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->image01:Lcom/bitauto/autoeasy/widget/RemoteImageView;

    iget-object v2, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getLogo()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/bitauto/autoeasy/widget/RemoteImageView;->setImageUrl(Ljava/lang/String;)V

    .line 95
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->isExit()Z

    move-result v1

    if-eqz v1, :cond_1

    .line 96
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->button01:Landroid/widget/Button;

    const-string v2, "\u53d6\u6d88\u6536\u85cf"

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 97
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->flag:Z

    .line 102
    :goto_0
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getTopicList()Ljava/util/ArrayList;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 103
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->listView:Landroid/widget/ListView;

    new-instance v2, Lcom/bitauto/autoeasy/bbs/Adapter/Topicdapter;

    iget-object v3, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v3}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getTopicList()Ljava/util/ArrayList;

    move-result-object v3

    invoke-direct {v2, v3, p0}, Lcom/bitauto/autoeasy/bbs/Adapter/Topicdapter;-><init>(Ljava/util/ArrayList;Landroid/content/Context;)V

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 105
    :cond_0
    return-void

    .line 99
    :cond_1
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->flag:Z

    goto :goto_0
.end method

.method public saveBBS()V
    .locals 3

    .prologue
    .line 125
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    .line 126
    .local v0, cv:Landroid/content/ContentValues;
    const-string v1, "id"

    iget-object v2, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getFGid()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 127
    const-string v1, "bbsname"

    iget-object v2, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getForumName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 128
    const-string v1, "bbscounts"

    iget-object v2, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getPosts()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 129
    const-string v1, "bbstopics"

    iget-object v2, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsInfo;->getTopic()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 130
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->contentResolver:Landroid/content/ContentResolver;

    sget-object v2, Lcom/bitauto/autoeasy/db/provider/FAV_BBSContentProvider;->CONTENT_URI:Landroid/net/Uri;

    invoke-virtual {v1, v2, v0}, Landroid/content/ContentResolver;->insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;

    .line 131
    const-string v1, "\u6536\u85cf\u6210\u529f"

    invoke-static {p0, v1}, Lcom/bitauto/autoeasy/tool/ToolBox;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    .line 132
    iget-object v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->button01:Landroid/widget/Button;

    const-string v2, "\u53d6\u6d88\u6536\u85cf"

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 133
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/bitauto/autoeasy/bbs/BbsListActivity;->flag:Z

    .line 134
    return-void
.end method
